package com.game.modular.gameCore.cultivate.controller;

import com.game.modular.gameCore.cultivate.service.impl.CorePropServiceImpl;
import com.game.modular.gameCore.cultivate.domain.CoreProp;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import com.game.comment.core.ResponseResult;

import java.util.List;


/**
 * 道具表(CoreProp)表服务控制层
 *
 * @author cxy
 * @since 2024-08-05 18:15:26
 */
@Api(tags = "道具表(CoreProp)") 
@Validated
@RestController
@AllArgsConstructor
@RequestMapping("/coreProp")
public class CorePropController {
    @Resource
    private CorePropServiceImpl corePropService;
    
    @ApiOperation("获取道具表列表")
    @PostMapping("/list")
    public ResponseResult<List<CoreProp>> list() {
        return ResponseResult.success(corePropService.listCache());
    }
}
